/*
 * LogisticsAdapter.java
 * business
 *
 * Created by ChenTao on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.adapter;

import android.content.Context;

import com.yidiandao.business.ui.widget.listview.CommonAdapter;
import com.yidiandao.business.ui.widget.listview.DisplayItemManager;
import com.yidiandao.business.ui.widget.listview.DisplayListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.LogisticsFooterListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.LogisticsHeaderListItem;
import com.yidiandao.business.ui.widget.listview.displaylistitem.LogisticsListItem;

/** 物流信息的Adapter. */
public class LogisticsAdapter extends CommonAdapter<DisplayListItem> {

    public LogisticsAdapter(Context context) {
        super(context);
    }

    @Override
    protected void registerDisplayListItemMap() {
        DisplayItemManager.register(getAdapterTag(), LogisticsListItem.class);
        DisplayItemManager.register(getAdapterTag(), LogisticsHeaderListItem.class);
        DisplayItemManager.register(getAdapterTag(), LogisticsFooterListItem.class);
    }

    @Override
    protected String getAdapterTag() {
        return LogisticsAdapter.class.getSimpleName();
    }
}
